const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
mongoose.Promise = Promise;
const Users = mongoose.model("Users", {
	username: String,
	password: String
})


async function run(){
	await Users.remove();
	await User.create([
		{username: 'Joyce', password: '123456'},
		{username: 'admin', password: 'admin'}
	])
}

run();

module.exports = Users;